import request from '@/utils/request'

// 配置
export function getConfig() {
    return request.get({ url: '/config/getConfig' })
}

// 工作台主页
export function getWorkbench() {
    return request.get({ url: '/workbench/index' })
}

//字典数据
export function getDictData(params: any) {
    return request.get({ url: '/config/dict', params })
}

//获取银行列表
export function getBankList(params?: any) {
    return request.get({ url: '/config/bankList', params })
}


//获取下级区域列表
export function getNextLevelAreaList(params?: any) {
    return request.get({ url: '/config/nextLevelAreaList', params })
}

// 统计数据
export function statistic(params: any) {
    return request.get({ url: '/workbench/statistic', params })
}

// 活跃用户数统计
export function huoyueData(params: any) {
    return request.get({ url: '/Workbench/huoyueData', params })
}

// 注册数据和活跃用户数据一起返回了
export function monthCoreData(params: any) {
    return request.get({ url: '/workbench/monthCoreData', params })
}

// 各个城市渠道用户统计
export function statisticUserAndChannel(params: any) {
    return request.get({ url: '/Workbench/statisticUserAndChannel', params })
}

// 同环比数据详情
export function allStatistics(params: any) {
    return request.get({ url: '/workbench/allStatistics', params })
}
// 同环比数据下载
export function downAllStatistics(params: any) {
    return request.get({ url: '/workbench/downAllStatistics', params })
}
// 用户行为统计
export function clickData(params: any) {
    return request.get({ url: '/Workbench/clickData', params })
}
// 合作统计
export function cooperationStatistics(params: any) {
    return request.get({ url: '/workbench/cooperationStatistics', params })
}